Backend Code

Check out these web sites for information on back ends.
http://www.bignosebird.com/lscgi.shtml
http://worldwidemart.com/scripts/
http://www.cgi-resources.com/
http://cgi.resourceindex.com/Programs_and_Scripts/

The front end is easy. All you need to do is set your URL with the Get or Post values to the proper URL and thats its. For CGI the URL will more than likely end in .CGI. When you use get or post it sends all the variables that have been set.

ASP code for load variables:

code:---------------------------------------------------<%
' initial setup (recommended)
Option Explicit ' Forces declaration of variables
Response.Buffer = true   ' Don't output page until script finished
Response.Expires = -1441   ' Attempt to overcoming browser cache probs

' declare some variables
dim strFirstName, strLastName

' get the info
strFirstName = "" & request.form("firstname")
strLastName = "" & request.form("lastname")

' process as desired
%> ------------------------------------------

Where "firstname" and "lastname" are what the text fields are called in KoolMoves.

No need for first three lines, but they help. No need to DIM variables if Option Explicit not used.

Standard stuff, in other words KoolMoves creates a .swf that sends data correctly, as far as ASP is concerned anyway.

This info could then be used in html like this:

code:-------------------------Hello <%=strFirstName%>
etc --------------


More code in VB Script:

code:----------------------------<%@
LANGUAGE="VBSCRIPT" %>
<% response.expires = 0 %>
<%

sMail = sMail & "You Can Put Anything You want here- It is attached to the Body" & vbcrlf & vbcrlf

sMail = sMail & vbtab & "AnyQuestion you want answered - " & request("Any Variable you want") & vbcrlf

Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.RemoteHost = "your mail server"
Mailer.Subject = "anything you want "

Submitter = request("Var you set for the senders name")
Mailer.FromName = "any name you want"
Mailer.FromAddress = "any adress you want"

Mailer.BodyText = sMail

Mailer.AddRecipient "name of who you want to send to", "E-Mail of person you want to send to"
%>


Code in Perl

code:--------------------------------------------------- #!/usr/bin/perl

require "subparseform.lib";
&Parse_Form;

$Title = $formdata{'Title'};
$Contact = $formdata{'Contact'};
$About = $formdata{'About'};
$News = $formdata{'News'};
$Products = $formdata{'Products'};
$Link = $formdata{'Link'};

@New = ("Title=$Title&Contact=$Contact&About=$About&Products=$Products&News=$News&Link=$Link");

open (LOG, ">/home/formexample/TextFile.txt") || &ErrorMessage; print LOG "@New"; close (LOG);

print "Content-type: text/html\n\n"; print "Status=Success - Your Comments have beed updated. Please return to the main area to see the results";

sub ErrorMessage { print "Content-type: text/html\n\n"; print "Status=Connection Failed Please Check the path to the text File"; exit; }--------------------------------------------------

That Backend looks for the variables Title, Contact, About, News, Products, and Links and then writes them to a Text File called TextFile and generates a HTML Page telling you that the values were submitted. The Script works and is customizable. By Altering the names of the Vars in the First part of the script to mach the names you gave them in the SWF you created , remember to change them in the @New line.